<div class="box">
	<div class="heading">
		<h1> <%= image_tag("/assets/admin/user.png", :alt => "test image") %>
		<% if(session[:user] && session[:user].email == @user.email) %>
		<%= t('Profile Admin')%>
		<% else %>
		<%= t('View User')%>
		<% end %></h1>
	</div>
	<div class="content">
		<div class="inforAdmin">
			<div>
				<table class="dashboard-content-admin">
					<tr>
						<td width="120px" ><%= t('Username') %></td>
						<td><%= @user.fullname %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Email') %></td>
						<td><%= @user.email %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('ID Number') %></td>
						<td><%= @user.idnumber %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Phone Number') %></td>
						<td><%= @user.phone %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Address') %></td>
						<td><%= @user.address %></td>
					</tr>
					<tr>
						<td width="120px"><%= t('Role') %></td>
						<td><% if(@user.role == 1) %><%= t('ADMIN') %>
						<% else %><%= t('USER') %>
						<% end %></td>
					</tr>
				</table>
				<br/><br/>
				<div class="buttonsadmin">
					<%= link_to t('Update'), edit_manager_user_path(@user), :class => "button" %>
					<%= link_to t('Back'), manager_users_path, :class => "button" %>
				</div>
			</div>
		</div>
	</div>
</div>